Add node type to dict passed to the API

Nodes defined as SECONDARY are only in the rotation to receive traffic from the load balancer when all the primary nodes fail. This pull request passes the node's type to the API when adding it to rotation. 2nd PR attempt, sorry; this is fairly new to me!