Moved generic coupling code and error handling into libauscom.