fix for jvm.options not capturing all args, and user agent set when downloading binaries.
Merge pull request #20 from Samuel1989/master

fix for jvm.options not capturing all args, and user agent set when down...
Merge pull request #21 from davidcurrie/master

Fix file permissions and provide ability to cache all remote content
Merge remote branch 'upstream/master'