Use java's AtomicReference to back atoms. Add compare-and-set-entity! into the platform.
Add test to show atomicity of swap!
Merge pull request #2 from patrickgombert/atomic-reference

Use java's AtomicReference to back atoms. Add compare-and-set-entity! in to the platform.