renamed connection
added more tests to client
removed connection spec
Removed unecessary reference to connection class. Updated spec for pending attachment
Added connection module. Cleaned up tests