Refactors spatial queries.
Improves error-handling for input Jsons for transactions.
Minor refactoring of SpatialQuery/SpatialCollection.
Minor reformat.
Views can be applied using 'with-view' query param.