Implemented resource locks based on wait-conditions.
Implemented deadlock detection.
Added abort operation to OperationDispatcher.
Updated demo files.