handle unauthentication error on main.js where it belongs. i <3 bluebird