Keep blank values on POST and PUT operations

Changed this so there are no made assumptions about how the client
code will handle empty form fields. Also, moved all calls from cgi
to urlparse since its the new module for these things.
Merge branch 'keep-query-blank-values' into develop

* keep-query-blank-values:
  Keep blank values on POST and PUT operations