GEOS-4943 /geoserver/accessDenied.jsp not found (backport from 2.5.x)
GEOS-6394 import can fail on windows

Due to file locking, when uploading a zip file, the file can fail to be
deleted and is erroneously scanned as part of the import causing an
unrecognized task.

Also added additional checks for deletion failure to ensure an earlier
failure.

(cherry picked from commit b6b0f65049be5ee3b1f3b3387a2dcdf4bab41155)
importer - ensure layer has projection policy

(cherry picked from commit 6b3b5b2b4728da7c3e9ac5fc2ebd9df499b48071)
importer - error handling and some cleanup

- put uncaught exception handling into BaseResource and ensure
  uncaught exceptions are logged during testing
- remove redundant finders from spring and routing config
- remove instance state from ImportResource + minor refactor to
  accomodate
- push logger up to BaseResource
- imports cleanup

(cherry picked from commit f78d6d60a353718bfc334f5e4a2842e567179e6d)
importer - better support for kmz in upload

Previously, kmz was unpacked early in the process and alongside
any other uploaded files. This resulted in the layer/featuretype
name being 'doc' and makes tracking any related files more
difficult.

- add unpack method to DataFormat to support custom unpacking
- implement unpack for KMLFileFormat
- format test for unpack
- rest endpoint test for kmz and correct name
- support kmz named as kml (google earth does this, too)

(cherry picked from commit 2375888fbabea402302bb3c10af785d24493dc29)

Conflicts:
	src/extension/importer/core/src/test/java/org/geoserver/importer/ImporterDataTest.java
importer kml/kmz improvements

- rework existing parsing and featuretype transformations
- add SLD generation, extract referenced graphics and rewrite
  relative uris
- rewrite relative URIs in description field to point to style
  directory
- add ability to parse KML into separate featuretypes collated
  by geometry

(cherry picked from commit b3f3b33e7e6af24817b58aa751f32e0af363a5b8)

Conflicts:
	src/extension/importer/core/src/main/java/org/geoserver/importer/format/GeoJSONFormat.java
	src/extension/importer/core/src/test/java/org/geoserver/importer/ImporterDataTest.java
do not require task to already have target

for tasks that don't have a default target, one must be specified
the previous logic prevented this
importer - default pushpin style, skip empty styles
importer - optional lenient geometry parsing of kml
importer - support colored icons from kml

kml allows for icon tinting and this supports generating colored
icons as part of the import process

also add the ability to cache non-serializable metadata for the
bdb store, including kml styles (to avoid multiple parses)