Fix edit page bug

When a page is edited, age_set(page_key, p) needs to be called so that
the new page overwrites the path in memcached.
Add json rendering

These small changes enable json rendering of wiki pages
Rename to a clearer variable name