Api server

added head_node_create and head_node delete