copied from https://github.com/remotestorage/remotestorage.js/tree/fa8b6ac77b3d2b2d183394315d159a576e83d8d6/example/server