Added attach in gateway.
Changed return type.
Changed indentation.
Added DetachRequest and DetachReply.
Added NameRequest and NameReply.