Got add-gas form working after the template change.

Also, sending the forms as JSON instead of URL encoded form data.