PERF: Remove N+1s from ThemeController#update and #show (PR #12842)

These endpoints only return one Theme row, but the one-many relations were not being preloaded efficiently. This commit moves the includes statement to a scope, and makes use of it in #index, #show, and #update.

GitHub

Nice trick!