converted remaining code to new trajectory optimization interface.
note: did not test lqr tree code (since it's only called from dev examples)
zaps old trajectoryOptimization interface.  resolves #321.