Fixed handling of binaries

most strangeness you will find in the transport layer is the result of the fact that originally we only support jackrabbit. ie. there is a lot of potential for refactoring to clean up the transport interfaces.