ThreadController starts using UserRepositoryInterface from now. Removed an anti-pattern (direct use of Sentry) from the views.