Atomic attempts 3
Created by: leios
This re-implements the atomic_...
functions from #282 so I can keep using them if I need for testing down the road. Also: I can't quite get atomix to work for some of my use-cases, so I still need the "primitives". The Atomix tests have been moved to #308