thrift-2856 refactor erlang basic transports and unify interfaces

patch: alisdair sullivan
client: erlang (library)