Redirect user if the app has already been authorized

Edited on Github. This wouldn't work if temporarily authorized applications showed up in the "authorized" list, but they don't, so it's fine.