Move memcache helper functions

Moved memchace helper functions to its own module to import in both the
enpoints.py and main.py. Commit also includes fix for newly created
eatery and new trip bug