Refactor. Mostly bad style.
Added test for memcache, added method to check if memcache is up, refactored
Some more refactoring.
Refactored out routes from app and into own class + tests.