Reduce mongo calls on course outline and container pages

STUD-2076. @cahrens @dan-f @dmitchell please review.
Did you check if there are any other places (outside test code) where we are using has_item to determine if there is a published version? If so, we should change those as well to use compute_publish_state.