Fix errors, add '/flush' page for flushing memcache