Corrects viewable pages

If a user is logged in, the user will be redirected to
the files page if they navigate to the login or resiter
page.
Implements download javascript client-side