Moved midi and hardware classes into controller.