move register, unregister and watching direction change into event_ops

Signed-off-by: Alejandro Mery <alejandro.mery@opensynergy.com>

Conflicts:
	lib/private-libwebsockets.h