Add encode of attach frame.
Move descriptors to name/code pairs and use codes.