Add a MachineManager class.

Add a class for the purposes of managing simulated machines. If
this class is used properly, future commits can help cut down on
the number of checks that occur to each call on ptl_simulate.