Bug 899328 - Register only one listener for mozbrowserloadend and appopen on a given app iframe.

This prevents us from leaking listeners.
Merge pull request #11236 from jlebar/apploaded-listener

Bug 899328 - Register only one listener for mozbrowserloadend and appload...