Add regtest 

Probably best to review this after release, adds regtest (simulation) mode to the mastercore client with -regtest