Issue #2154711 by plopesc, tim.plunkett, olli, Berdir, Dave Reid: Move entity_get_(form/view)_mode_options() functions to EntityManager and add get(Form/View)ModeOptions() methods.