Add built in permission manager. Fixes #53.