Bugfixes for lib and ssh

* Adding functionality in lib to support more complex curl queries
* Fixing ssh to support curl stuff