Implemented preferences to set the UI thread script timeout.
Merge pull request #22 from Lothar-Tradescape/timeout_preferences

Implemented preferences to set the UI thread script timeout.