Factor out some resting code.
Prevent regeneration during the first few turns of resting. [1771]
Merge pull request #280 from bensemmler/1771

The first five turns of resting will have no regeneration bonus. It also fixes an off-by-one with specified rest counts (R1 would rest for two turns).  Closes #1771.