CDAP-15: Provided capabilities to check the status of programs in FlowManager
CDAP-15: added usage of check state method in existing unit-test
CDAP-15: fixed PR comments
Merge pull request #882 from cybervisiontech/CDAP-15

CDAP-15: Provided capabilities to check the status of programs in FlowManager