server-node: Added support for custom handlers