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.