Fixes/updates for UsaEpayAdvanced Gateway

I have had these updates in place for a while on my projects, but never got a pull request in place to contribute them back. Please let me know if you have any questions. All unit and remote tests pass.