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.