adds simple authentication method to http handler

http handler expects a username/password pair either via json
or http form submission and responds with either true for successful
authentication or false