Tool Shed API fixes and code cleanup.