Add regtest 

Probably best to review this after release, adds regtest (simulation) mode to the mastercore client with -regtest


also added: testcases but can remove those from the PR with ease.