Rational Degenerations of M-Curves, Totally Positive Grassmannians and KP2-Solitons