[mvc] Add missing require declarations for Application and Layout.