Updated security system

- Security system now uses the same database as resources.
- Admin and User accounts are automatically created for testing.
- Implemented User accounts management at /users*.