Add functionality needed for Google Appengine

Closes #2