Move Message and BinaryRW into lib