e-science login/logout functionality with ember and django backend