Import objects from btc-p2p
Add tests for building messages