Mavenize the project

* Mavenize the project dividing it in a main POM project and a submodule containing the base core.
* Add Maven plugins:
 * To create OSGi bundles.
 * To create Karaf features as artifacts.
* More minor improvements:
 * Apply some Java formatting (a convention is needed!).
 * Capture some exceptions happening at runtime.