Added POST of new comment in post-rest.php

I've added a new comment in the POST request that's in post-rest.php
Some fields of the comment shouldn't be in an array, so I've changed the buildPayload() function to not wrap all values in arrays and moved the wrapper arrays to the $config array.