Removed hacks to support Deluge's cookie auth - implremented the functionality cleanly in JSON::RPC::Client and submitted patch upstream