Allow scripts to remember state across invocations.
Merge pull request #17 from Lothar-Tradescape/global_state

Allow scripts to remember state across invocations.