US3270 - Implement improved security in RHC

Lots of cleanup and goodness.  Accepted by test, [merge]