Updated maven configuration

The library has been spit into submodules. The maven configuration was
updated to be able to compile all submodules and the example.
Merge pull request #199 from WonderCsabo/feature_split-library

Updated maven configuration