Adde ModelObject wrapper to try to reuse some data structures.

Removed early test code.
Renamed the module fit_wrapper to lib_wrapper.