Add rest library client side
Partial refactoring to make config-servlet / client into rest.