Refactoring of backend, now using restify and a more functional architecture.