Add RobOptim callback support.

Cf. roboptim/roboptim-core#38 and roboptim/roboptim-shared-tests#5