Added periodic refresh

command line param #2 is seconds between refresh
Add stdlib.h include
Change bypass_cache reload to regular reload
Merge pull request #1 from FarawayLabs/periodic_refresh

Periodic refresh