Clean up modules and parent pom and use module as dependencies.
Added rest example