Optimal control and optimal response in microscopic nonequilibrium systems