Control and Differential Games with Path-Dependent Influence of Controls on Dynamics and Running Cost