Did some work on the validation of the query string for a terrain overlay.
Made entities injectable
Repository raises events.
Fixed some bugs introduced by previous commit.
Merge branch 'master' into transition_tiles
Finished the validation. Moved service to separate namespace.