load configuration from JSON instead of reading a global JS variable

configuration now needs to be in JSON format.
Located either in "config.json" or passed as URL parameter "config"
Added (very simple) loading screen while configuration is loading
Added (very simple) error message if configuration couldn't be loaded