Wrapped dsf logic into a class.

Follows convention of Murray's control toolbox and wraps dsf logic into
DynamicalStructureFunction inheriting from control.lti.Lti. Function dsf()
still exists as a factory method to create the dsf. Tests updated to
reflect the changes.