Removed inst(), its duplicating Injector functionality
API Replace TestSessionDatabaseState with JSON persistence, store PHP session
API Persist state directly on disk

In memory state can get out of date between CLI and web requests,
leading to hard to debug errors. The performance impact of this
should be low, given the size of the JSON file.
Tie test session files to browser session