Added a boolean control and associated tests.
Enabled CORS support, configurable in config.yaml.
Fix reference to now non-existant property.
Added method that clears out device counts and device records on start up as they are invalidated.