working version with pg, memcache, and precompiled assets