cleaning up some conditionals
wiring the post-login redirect to preserve pre-login request
shifting the last of the initialization code into the bootstrap
merged the front page handler into the page handler