Update for new Restraint/ScoreState interface.
Remove deprecated code.

The compatibility classes were erroneously being used as the base
classes for *all* Restraint and ScoreState objects in Python. This
was causing the methods in the wrong base class to be called.
Make sure we set the model.