Add in mojo-commons

Imported the few lines from repo
https://github.com/sonatype/mojo-commons

Classes are used by nexus-staging-maven-plugin for now, but I put
the commons at top level for future.

CI
https://bamboo.zion.sonatype.com/browse/NX-MVNF9