[CDAP-868] Moved logic from /status and /instances batch APIs to ProgramHelper