Refactor project structure

I separated the library code of the project from the actual example implementation. Further, I set up the `pom.xml` files to enable Maven builds for the project. Please find further information in the `README.md` and `CHANGELOG.md`.