Adding a light-weight API for extensions to other data models, with a reference implementation for Device.
The extend method on RegulationExtension now returns the narrowed type AsRegulations, removing the need for client code to cast.
Merge pull request #31 from drdozer/Device

Sketch of a plugin extension API and implementation for Device