Code Review Changes

* change rest endpoint url to `modules/{type}/{name}/definition`
* change MediaType to `application/xml`
* shell UI improvements
* polish exception handling