ipython notebook of factor graph model

@ppletscher, @iglesias I added an ipython notebook, and modified a bit the PrimalMosekSOSVM so that we have verbose control of outputs.