Minor tidyups
Adhere to pep8 guidelines
Minor script cleanups
Add REST interface for authenticating users.

GET:
/v1.0/authenticate: Lists authenticated IP addresses

POST, PUT, DELETE:
/v1.0/authenticate/{ip}: Add, Replace or delete an authorisation entry.
Authenticate users when they log in correctly.
Merge pull request #1 from joestringer/master

REST API to authenticate users from webserver