Create mt.scm for mt: api calls. Move all common calls to here and or wrap them here. Several fixes related to tests with large numbers of iterations. WARNING: This commit has a bug in the logic of getting runs by state and status