Cleaned up emulator state logic

Refactored code to bring messy state logic into a stand alone object;
added support for booting from ROM
Added Google Analytics events

Now sends "read-document" and "mount-disk" events
Added indication to double-click icons