Added sample usage for promiseMap, converted remaining uses of request.post to use postPromise, and made more style fixes