Basic access control and security features. Fixes #18