fix dependencies, add jdom2 stuff

@pablopareja the only thing missing here is migrating to the 4.x
Apache HTTP client; see here for samples

https://hc.apache.org/httpcomponents-client-ga/examples.html