Added config file support
Added some debug logging
Added debug endpoint for token dispatch