Move the get_permission_codename import to the main code.

cc #93
changelog: mention the backwards incompatibility that #93 introduces.

This at least affects one of own projects.