Refactored common functionality of index.js into formSetup.js
Fixed a typo
Implemented simulation of secure server
Implemented reporting module.
Added regression tests for report module.