Maven update; Separated library and sample

- Updated the project to build with Maven.
- The sample activity has now been extracted from the library project
and moved to its own project.