Fixed SSL

Looks like this hasn't been touched in a while but it's still useful :)

* SSL was broken, fixed by specifying secureProtocol with `https.Agent` on L#32 and L#40
* In the process, removed request as a dependency
* Also merged in commits from #8, which fixed the broken xml parsing.