Memcached

GAE's db query read quota busted because the reading query was run in
every single in 2 loops, and there were no memcaching.
Fixed the number of query call, added memcache and CAS for user submits.