added services and controllers for angular and some other minor changes for omniauth callbacks