Made site work with memcache

This is still at the testing round where I will need it to go live so
the changes can be seen.

Expected problems:
 - No live change as script.js only runs Ajax calls when previous
   on-page data is different from current (meaning on user interaction).
 - This means that a change in the cache DOES NOT call Ajax GET request
   to change the value of the text editor.