Continued work on theme emulator

This adds all missing mdm calls to the emulator.

Todo:
- Code could use some cleanup
- Default values for dialogs ?
- Submit dialog on enter ?
- What format should the time string be ?

Anything else you'd like to have added ?