Update param encoding to support nested params and allow response object to take a string

This should resolve issue #3. In addition, the requests from clicky are coming back as strings, but your new response class seems to require an array. I have made this a bit more flexible to get it working again for me.