Moved Cantrip to index.js so its more like a module, server.js now just starts the server. Also added configurable options and the ability to set the number of requests before the memory is saved to the file.