refactoring gui module to get a servlet module + jaxrs modules (common, client and server)