On disk scripts : Add dynamically updatable refresh timings and test.

This commit allows the refresh timings for on disk scripts to be dymanically updated.
Also adds a test to make sure that new scripts are available at search time.