added support for refreshOnchange option
Merge pull request #23 from olivier-squid/master

added support for refreshOnchange option