Additions to declare_permissions and sample extensions pages