Cleanup and FireFox warning/error elimination.

Firefox does not like responses without content-type headers. And also
removed the form encoding from post requests.