added generate-form-item call to api

I added calls to allow me to add a single parameter to a form. The compressed JS and the docs need updating too I guess. Would be nice to automate that somehow ;-)

I also fixed the issue I supported.