Split out the pin id's and data from the payload

It still needs more sanity checks and I need to rework the rest api call
but work is coming on nicely. Dinner Time.