Fixes to enable HWS integrated testing via t4.
- Added configuration values to allow port to change easily.
- Adjust how the T4 tests are launched
- The preview/submit methods weren't wired together.
- Add some configuration of trust for SSL connections