Added Login System and Page Security.

The Tests have a backdoor through the login system in
ApplicationController. They need to be fixed to match with the
authentication system.