Optimisations, moved io_service to Engine class. Preparing to implement a full-on scheduler.