Mining protocol made compatible with MinerGate.com

Also, I fixed incorrect nonce offset in job data.