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

@sreevatsanraman I didn't make changes for ProcedurManager because Procedure is deprecated. Please review