Added BlockingCondition.
Major refactoring of input and transactions (WIP).
Fixed continuations for new transaction style.