Introduce a mechanism for executing blocking operations (closes #114).