Implemented workitem command.

Step no longer automatically switches to next work item when finished
or at barrier. Removed WAIT_EVENT from WorkItem::State enum (use
BARRIER instead).