Added localhost debug mode, improved gajs cookie management