adding authorisation middleware and cleaning up server.js
cleaning server.js
Merge pull request #79 from jasonalmaturner/master

Adding authorization middleware and cleaning up server.js