Adding the code to append Gigya ID's if the user is logged in through there
Misc whitespace/code formatting and namespacing