Fix a couple of bugs
Use omniauth (cf js) to redirect user back to previous location after signin