Added user accounts and page/action permissions

- Created two users, admin and author with static permissions
- Redesigned setup, login and auth to use user objects, instead of cred.php
- Created User, PagePermissions, ActionPermissions classes to give fine grained permission control
- Bugfixes in header