Fix bug 1055708 - Refactor AllAuth front-end JavaScript and prevent multiple JS inclusions