Snoblind: Mogul: Moved some non-rhino-specific code from the rhino package.