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

to be included in drake v 0.9.7
We have both `cost(t,x,u)` and `cost(dt,x,u)`. Do we want to stick to one of it?