Fixed some imports, write logic to parse exec command on agent and send buffered result to chief over socket