Fixed many bad references to project labels, which break authentication
Added some debugging for assisting tracing authentication issues