Refactored usage of IOLoop by removing const io_loop from core and using IOLoop.current() calls instead