MBS-6622: Make sure all login pages submit over HTTPS

If SSL_REDIRECTS_ENABLED is true, the action of the login form will be
a https:// uri. If it is not true, then http:// will be used.
MBS-6622: Redirect over SSL when a page tries to display login forms

When a page requires a user to be logged in, it would normally
display the login form. Now, the action first ensures that the
user is connected over SSL before displaying the form. If they are
not, it redirects them to the same page over SSL.
Merge branch 'mbs-6622' into beta