Added check if 'logout' is set and if so to set pageRequest var to defaultView.
Created a home controller to re-direct to index if not logged in.