add check to see if user has rights to view this monitor
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.
This replaces Module::Load with Module::Load::Conditional which can actually handle errors.
Then I move the module load call up before the fork so that any errors will be visible and will make zmcontrol.pl die quickly instead of waiting 11 seconds for something that will never happen.
Offer login instead of error

When a user accesses a view but receives an error, and is not logged
on, he is offered a login prompt instead.  The login prompt saves the
original query URL in a hidden field, and postlogin redirects back to
the original URL once the user has logged on.

If the user is logged in and there is an error, no login prompt is
shown.

This allows the user to click an event link in an e-mail and then log
in before being shown the event, instead of requiring going back
through the front ZM page to log in.
postlogin.js replaced by postlogin.js.php
Fixed autotools build to reflect file name change

postlogin.js -> postlolgin.js.php
Merge pull request #631 from ZoneMinder/fix_security_on_watch

add check to see if user has rights to view this monitor
Merge pull request #635 from ZoneMinder/zmcontrol_improvements

Improve zmcontrol.pl
Merge pull request #632 from ZoneMinder/better_security

better fix for the view=console security flaw.
Merge pull request #640 from jrd288/offer_login

Offer login prompt instead of throwing error