1362 fix page action rendering without template take 2

Did it the same as ResourceController with an ugly cut and paste, but moving determine_active_admin_layout to BaseController seemed uglier without bigger changes and was hurting my Java brain waaay to much.