Fix for #565 (Allow hooks to be programmatically attached).
Fix for #565 (Allow hooks to be programmatically attached).

cherrypy/cheroot,Safihre/cherrypy,cherrypy/cherrypy,Safihre/cherrypy,cherrypy/cherrypy