[WIP][Bug 890538] Update API handling & response codes for the Login server

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=890538