Adding basic maven building support

Added basic support for maven both the library and the example project.
Added maven 'target' directory to .gitignore.
Moved the dependencies and plugins version to properties in the parent.