Used collection to gather name value pairs for post request.

Rather than use setParameter(String, String). Fixes issue #71.