Fixed bug in MX codegen
Added quick-hack for generation of main function in generated code, #617.
SCPgen: Separated calculation of condensed Jacobian
SCPgen: Separated calculation of condensed Hessian
Refactored SCPgen