Fix bug in batch error logging that caused some error messages to be lost.
Implement RecordRegion index type that allows indexing and querying against polygon spatial data.
Add RecordRegion table used for polygon spatial indexes.
Add support for multiple shapes within a region.
Add support for adding multiple circles to a Region.
Improve accuracy of polygon circle approximation (old algorithm was egg shaped!).
Improve accuracy of geospatial searches on MySQL 5.6 and up by using ST_Contains instead of MBRContains.
Store Regions in database using a GeoJSON-like format.
Reverse lat/long positions when querying for a point within a region.
Fix bug that threw an error while saving if the map wasn't edited.
Merge branch 'master' into feature/region-support
Merge branch 'master' into feature/region-support

Conflicts:
	db/src/main/java/com/psddev/dari/db/SqlVendor.java
Add region support for Postgres.
Flushes cache after save to reduce inconsistencies
Enables prefetching of Metric data
Separates min and max for cached Metric data
Fixes ConcurrentModificationException in State#resolveMetricReferences.
Adds contexts option to HtmlGrid.
Fixes ConcurrentModificationException caused by modifying the result of ObjectType#getMetricFields.
Fixes metric fields in global modifications being initialized wrong.
Changes ObjectType#modifyAll and #modify to ignore abstract modifications so that they can be extended.
Merge branch 'master' into feature/region-support

Conflicts:
	db/src/main/java/com/psddev/dari/db/ObjectField.java
	db/src/main/java/com/psddev/dari/db/SqlVendor.java
	etc/mysql/schema-11.sql
	etc/postgres/schema-11.sql
Fixes some formatting issues.