Refactored and simplified. Meet IOLoop and Controller. Removed excessive exceptions.