Single permissions based links function

- Added new table "privileges" to database. The function, links, queries
from that table to see if a user has permission and outputs data
respectively.
- Bug fixes and performance tweaks.
- Removed need for dedicated admin page
Separated password from account updating