Make .bat start script honor -J and -D arguments.

This makes the .bat start script parse and use -J and -D arguments.

Specifically:
 - Parameters starting with -J are stripped of the prefix, unquoted if
   necessary and appended to %JAVA_OPTS%.
 - Parameters starting with -D are unquoted if necessary and then
   appended to the others. The right-hand side of a property can be
   quoted or not.
 - The exact arguments passed to the script are also given as-is to the
   main class (using `%*`), so, as before, the main class should ignore
   arguments starting with -J and -D. This could be improved by manually
   parsing all arguments (not just -J and -D), but this is a mine field
   when it comes to quoting and delimiters...

This is adapted from my similar contribution to scala 2.10, see
scala/scala#2767.
Do not try to setup missing deployment settings for Docker.

Docker has no tasks for packageBin/etc. It should not be mentioned
in the deploymentSettings definition. Otherwise, adding
deploymentSettings to your build results in:
Reference to undefined setting:

  docker:packageBin from docker:$local (build.sbt:3)
brpJavaRepackJar template fixed
Merge pull request #251 from garycoady/fix/no-docker-publish

Do not try to setup missing deployment settings for Docker.
FIX #252 Removing the declare=0 variable
Merge pull request #255 from sbt/wip/fix-verbosity-in-bash

FIX #252 Removing the declare=0 variable
Merge pull request #218 from gourlaysama/wip/bat-fu

Make .bat start script honor -J and -D arguments.
Merge pull request #254 from kardapoltsev/wip/fix-rpm-brp-repack-template

brpJavaRepackJar template fixed
Fix non Java 8 MaxPermSize configuration

The check for Java 8 was always evaluating to true, so MaxPermSize was
never being set on Java 6/7 VMs.
Merge pull request #258 from jroper/java-8-version-fix

Fix non Java 8 MaxPermSize configuration
Correct versions in README
Removed duplicated import
Setting correct version and adding import statements
Fixing wrong usage of brackets in upstart script
Fixing tests and removing brackets completly
Merge pull request #261 from sbt/wip/fixing-docs-versions

Setting correct version and adding import statements
Merge pull request #262 from sbt/wip/upstart-startup-fix

Fixing wrong usage of brackets in upstart script
Merge branch 'master' of github.com:sbt/sbt-native-packager into wip/systemd

Conflicts:
	src/main/scala/com/typesafe/sbt/packager/archetypes/JavaServerApplication.scala