Added optional EXTRA_APPSTORE_SAFETY directive to disable some 'unconventional' code.

Should not be necessary but it's better to give users the option anyway. This is why it's not on by default.
See #373 for a discussion on this.
Added some safety checks around the disable-pan-over-view registration code.

See #373.