Allow logging in via hashed credentials key
Fix exception when logged_in? is false.
Switch examples to use login_from_key
Properly use @url_base when logging in via key

So we can use the test database or whatever.