Keep blank values on POST and PUT requests

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.