Finished refactoring login/register/logout code; removed local authentication views; misc. changes