More tweaks to header so that it works with omniauth ver 1.