Add functionality for alternative authentication systems such as Sentry

This pulls the function that gets the currently logged in user out into a config setting.

This allows someone to replace the `Auth::user()` function with something different such as Sentry's `Sentry::getUser()` to fill the user_id field.