Add optional gradient checking mode. Close #5

Please add -DROBOPTIM_CORE_IPOPT_PLUGIN_CHECK_GRADIENT to your
CPPFLAGS and recompile to enable this feature.

Warning: this will make resolution way slower.