Emit events via npm module for certain page loading milestones

Resolves #240