Added q::execution_context, which is a helper for creating a set of event_dispatcher, queue and scheduler, and connect them. Also fixes a couple of bugs here and there.