Move check_submit js to login page. No need to have it in base.pt.
Factor out login session information

The idea is to have one key on the session that corresponds to our login and
carries properties that determine what you can do. An anonymous user, for
example, would not be able to upload to cnx.
Add anonymous login control to login page.
Use AnonymousSession when logging in anonymously.
whitespace gardening.
Anonymous users cannot edit existing modules.

This implements the canImportModule property on the session object and
hides the button if the user does not have the relevant right.
Skip new/existing popup when in anon mode.
Factor workspace logic into the session.
Hide workspace selection for anonymous
Why is this here in the first place?

There is a bit of javascript that removes the disabled attr on the
upload button. It does not appear to be disabled to begin with, and
it makes it impossible to legitimately disable the button.
jquery's prop() method is better for disabled.

Better than using attr at least.
If get_next_action is None, disable the next button.
Disable the Finish button for anonymous users.
Go into advanced mode on metadata pg for anon user.
Merge pull request #1 from oerpub/no-login-needed-pathway

No login needed pathway