Added capability to remove media from a feature.
Added trimming of whitespace to attribute validation.
Save the geometryType of the geometry being inserted so that if the map refreshes, the user can go back to inserting a geometry of that type.  Still doesn't save the geometries that are in progress.

Also set it up so that if a geometry being inserted is being modified, and the map refreshes, the geometry will come up again correctly so the user can continue with feature creation.
Merge branch 'bugFixes' into dev
Merge branch 'delete-media' into dev