[WF4] Basic WorkflowApplication implementation and tests.