Shortcut function for handling HttpKernel front-controller boilerplate.