Let's wrap mozApps and mozPermissionSettings with AMD modules. This enables future proof in case mozApps and mozPermissionSettings become standard and not able to be replaced in unit tests.