simple password protect

define password in login.php currently test test
email handler for edit.php, changed name of required handler to login_required.php
changed editing backend to /edit folder

also DRY'ed up by adding head.php