Removed some unnecessary stuff from server.js
Also added REST.md which contains information on the REST api