Fix some authentication tests and changed format of sessions view to HAML