Work on p2p system

* Enable the p2p system to work (creates a persistent connection to a peer and receives block hashes)
* Improve the way stratum messages are processed (as soon as a newline is received, rather than only when the buffer ends with a newline).