Added HTTP Auth and HTTP Digest authentication #302

Supporting HTTP auth and HTTP Digest autentication on the web UI now. #302 

The sample test.htpasswd and test.htdigest have a test user called admin with password as password1
I wonder if we could make the return and func arg interface{} to keep from duplicating. Not sure if the result would be less readable though. WDYT?