Implemented initial hooking over the network

TODO: fix synchronization, fix point of hooking, accomodate special
hooks