Updates.

- Corrected a bug in the map control to ignore asynchronous events when
the control is being disposed.
- Added registry read/write method.
- Added structure templates.