Merge pull request #48 from bluecircle/master

Fixes to resolve proxy switching
Added check for missing daemon config
Added check for if daemons config is not array
Exposed vardiff object for external use
Keccak hash rate adjustment per piotrrojek
Merge pull request #52 from bluecircle/keccak_hashrate

Keccak hash rate adjustment per piotrrojek
Updated readme to be clear that this is simply a node.js module.
Update to stratum.js

I got this handed to me by zone117x to enable the haproxy to send the real user ip using the send-proxy flag. He will re-work it and integrate it better, but I've pushed this commit for now for those who want to have it working.

Also, I fixed an issue where miners using Uppercase characters in their workers wouldn't get authed by the stratum. I simply added .toLowerCase(); where the stratum looks in the db for the workername.
Merge pull request #57 from suchpool/patch-2

Update to stratum.js
Added official haproxy support/configuration. Optimized/fixed banning.
Made readme for banning more clear
Improve stratum message handling

Prevent the case where multiple messages are chunked together without being processed (occasionally leading to the buffer growing too large and the client being kicked).

Recognize messages consisting only of spaces as malformed.
Some work on the p2p system
Fix several bugs in peer.js and enable it to successfully connect to a peer (tested with bitcoind).
Merge pull request #59 from LucasJones/master

Fixed p2p system
Added documentation for p2p usage
Updated readme overscrolling text
Updated readme overscrolling text
Changes in how max difficulty and share validation works. Should be more accurate for scrypt based algos and x11
Fixed block solutions not being reported
Fixed job rebroadcast sending duplicate jobs. Rebroadcasting should work with miners such as bfgminer now.