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

to be included in drake v 0.9.7
Yes, you're right - I checked. I didn't know about that feature.