Added buffering to client channels to allow flexibility
Improved status code handling

fixes #48