Created IOServiceThreads class which manages io_services and threads.