Achievements working on Java side.

Changed Atomic Memcache to use Memcached API.
Sessions now use JSON encoding for data rather than PHP session
serializer.
Removed some deprecated stuff.
Other minor changes (documentation, comments, etc.)