Improved submit() function in P4.

What worked on my server failed on production server because there was
an additional line of output. Instead of assuming the line you want is
the last line, check every line until you find the submittedChange key.
Comment tweaks and fixed typo in error message.
Merged latest alpha version so we can work on ui
Finalized and hooked up the options.

I finally settled on the options I want for the first release and hooked them up.

	postreview.options.publish = options.publish
        postreview.options.target_people = options.target_people
        postreview.options.target_groups = options.target_groups
        postreview.options.server = options.server
        postreview.options.username = options.username
        postreview.options.diff_only = options.diff_only
        postreview.options.change_only = options.change_only
        postreview.options.testing_done = options.testing_done
        postreview.options.testing_file = options.testing_file
        postreview.options.debug = options.debug