Add "simulatorcode" capability

With this pull request, developers can test/simulate various returning codes for HostedPayment.