[Bug 872533] Added basicauth middleware to all LoginAPI routes

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=872533