adds helper functions and ties to server.js and controller.js
Merge branch 'feature#10' of https://github.com/desert-transistor/desert-transistor into feature#10