apiserver: changed login failure handling during upgrades

Login attempts may fail during upgrades due to schema migrations not having been applied yet. Instead of reporting a "bad credentials" error in this case, which is confusing to users and causes unit agents to terminate, return "upgrade in progress" instead.

Fixes LP #1372752.

http://reviews.vapour.ws/r/119/diff/