fixes #4459 - add main_app to root_path reference
fixes #4194 - redirect to login from katello pages