better fix for the view=console security flaw.

This does it in index.php,so it guards all pages, and also just changes the view to login, so instead of giving an error, it presents you with the login, which I think is better.
Merge pull request #632 from ZoneMinder/better_security

better fix for the view=console security flaw.