Move addon_permissions.mako script to separate module