Refactor mp model

* Update MP model structure.
* Refactor pipeline and frontend solver. Add drivers.
* Refactor protobufs.
* Update builder.
* Update demos.