Theory of Control for Active Goal-Seeking Systems