Add the permission manager. Fixes #39.