Handle browser autofill of login form.
Also remove api-token from localStorage when logging out.
Added MIT licence.