Send user back to previous url on login, close #148.
Merge remote-tracking branch 'template/master'