Make gradle generated pomfiles uploadable in nexus

Use the gradle-nexus-plugin to let generated artifacts
be uploaded to nexus with uploadArtifacts tasks.

Requires nexus username and password in ~/.gradle/gradle.properties
See https://github.com/bmuschko/gradle-nexus-plugin

Also add more build stuff in gitignore