Rename toAppDelegate to toAppFunc to match naming in the OWIN spec.