Bundle packaging + separation api / impl

Modification of the packaging in order to be deployed in an OSGi environment and modification of the structure of the project to improve the modularity.
todo remove it