Multi-module client

Make the client modular to produce others packaging (Karaf feature,
über OSGI JAR, etc.).