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.
This seems very error prone, since it relies on CPU scheduling, network latency, or even whether the test is using mocked networking...