Removed the unused kwarg on the login function.
Whitespace.
Added TODO.
Only show the file upload if we're in a directory.
Removed the block around the additional javascript to prevent it being included twice.
Added login_required on all pages.
Use the username when creating files and directories as the container name.