Make HttpMethod an enum; don't try to post data on a GET for JRE HTTP Client

Also refactor XML stuff a little
Merge branch 'master' of github.com:fathomdb/fathomdb-shared