fix get_block_stats to only look at blocks in the time window, and adds caching back
fix get_block_stats to only look at blocks in the time window, and adds caching back

simplecrypto/simplecoin,simplecrypto/simplecoin,simplecrypto/simplecoin