Merge pull request #6 from radu-c/master

Switched from 'finish' to 'close' event on streamWriter when downloading dependencies
Remove the package phase out of publish so that it can be called separately.
Updated documentation for artifactory:target:package