Updated api.http handling of controller returned fns (#9907)
Updated api.http handling of controller returned fns (#9907)

refs #9865

This is to ensure that if a controller returns a function, it will
always get called regardless of method.

Also cleaned up top level const usage
kevinansfield/Ghost,e10/Ghost,e10/Ghost,TryGhost/Ghost,bitjson/Ghost,JohnONolan/Ghost,Gargol/Ghost,TryGhost/Ghost,kevinansfield/Ghost,TryGhost/Ghost,janvt/Ghost,Kikobeats/Ghost,janvt/Ghost,ErisDS/Ghost,ErisDS/Ghost,Kikobeats/Ghost,JohnONolan/Ghost,Gargol/Ghost,JohnONolan/Ghost,Kikobeats/Ghost,kevinansfield/Ghost,ErisDS/Ghost,bitjson/Ghost