Corrected issue on form submission and undefined index.
Coder updates.
Removed logging code.
corrected some coding standards.
Returning exceptions via json REST, not to the screen, and fixed a silly logic error on test workflow step.
Fixed try catch Exception in test case.
Merge pull request #20 from MorganDawe/7.x

cwrc-29, QA Feedback. (Workflow form submission fix).