fix content type for json
added cache for front page
replaced custom cache with memcached
adds cache for single post