Refactored Login Redirection

Hi, this is my first contribution to the Bounty Board, and I hope I'm able to help out.

I removed a bunch of the custom code that we had for ensuring that the
given user is logged in, and instead used a single filter method
defined in ApplicationController. I also added some log messages where
it was hard to determine why something failed.