Added WP IO class for handling requests

Using new WP IO class for handling requests

@jdevalk Please can you review this code?
that comment can go now, I think?