AngularJS factory for creating and running the System. Works a treat.