Fix up maven build
Updated to modern httpclient implementation
Added result parsing and logging for responses with error messages in the body. Fixes #2