cleanup trajectory optimization examples (now everything uses the new interface)

to be included in drake v 0.9.7
In line 133 and 136, we should change the variable name to `dgddt`