Added JSON content type.

Also added some better defaults for how JSON is encoded.
Now checking for newline characters in comment name and contact subject fields.
Updated input types to use new HTML5 types.