Collar <-> Attachment interface scrip

First half of the script pair to facilitate collar <-> attachment
integration that allows scripts in an attachment to act as if they are
in the collar itself.