Show button "loading" message when authenticating
Tweak ui.js to be easier to re-use