In kudocracy mode, open external links in new window. Fix some kudocracy login issues