A clone from here. https://code.google.com/p/appengine-rest-server/