added support for a model settings dialog.
added new location service
locations refactored to be shared