Redirect user to OSM OAuth if not logged in

Redirect a user to authenticate via OSM if they are not logged in but try to perform an action. Also includes commits that fix some javascript typos. Fixes #23.