Identify global state variables accurately.
Fix path order. Config should come first.
Add a test mode to the server which includes the test index.html