move functions from NlpSolver to more appropriate modules

solveStaticOcp -> OcpMonad
solveStaticNlp -> NlpMonad
solveOcp -> DirectCollocation