Cashnet: Allow overriding custcode

Closes #1378.