Adds configurability to the number of past blocks used to average the network difficulty
Fixes a minor edge case - now when solving a block w/ less than the PPLNS it will base off of the available shares, rather than the number of shares used for safety