Fix problem where new users would see empty pages

They had to wait until the cron job fetched their pages before seeing
any posts or messages.
Move all the fetching stuff back to worker.py
Combine UserHandler and ApiHandler
Use dummy SESSION_KEY in template
Move json stuff into ApiHandler
Merge back models into models.py