Adds a cache refresh function.
Fixes #16 -- timeouts are now correct for all caching items
Changed schedule for setting average difficulty
Merge branch 'simplecoin' into develop