implement middleware/module/hooking system: add static .hook method to httpinvoke