Moving TaskResult and states to 'workflow' package

Change-Id: Iaa9a5514afdc7ad07f20cb373fd6c356f1391fa9