Moved the methods that deal with finding the current User to a superclass so other controllers can use them too.