Large refactoring: StuObject -> SpireObject.

Some additional functions from StuPipeInterface found their way into the
interface implementation.