[Bug 872533] Added basicauth middleware to all LoginAPI routes
[Bugs 873091] Add unit testing to Login.wm.o w/ Mocha