Remove common classes and depend on client-common-java

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>