Added ntime and nonce checks to processhare().
Started implementing serializeheader().
More processshare() work.