Indexed Scripts : Add timeout

This commit adds a timeout that defaults to 5 seconds to the indexed script get operation.
It also adds a test that attempts a script get before the .scripts index is created.
Maybe rename this to setTimeout, and getTimeout below? It is odd having the name overloaded.