FIX #435 Adding loader and control functions
Building a test app
added custom main test for windows batch
added cli option to set a custom main class for windows batch
fixed the wrong check (due to delayed expansion) in bat-template
Re-factored the Docker functionality for mapping Dockerfile

The Dockerfile wasn't being included in the `mappings` setting, but it now is. Along the way I took the opportunity of cleaning up how stage works, bringing it more inline with the approach taken by the Universal plugin.

One change that occurred as a result of the above is that `target/docker` is now used to generate working files (`Dockerfile`) as well as holding a `stage` folder. The `stage` folder contains the `Dockerfile` for staging add its context files. This is very similar to the structure of the `target/universal` folder.
Merge pull request #442 from tartakynov/custom-main-windows

#415 custom mainclass for Windows
Merge pull request #439 from sbt/fix/rpm-postun

FIX #435 Adding loader and control functions
Merge pull request #424 from huntc/docker-stage

Docker mappings - incomplete?