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
The duplication was something that I was trying to minimize :), got greedy with trying to put in both HTTP auth and digest! I do feel the current flow is easier to understand.