Added WP IO class for handling requests

Using new WP IO class for handling requests

@jdevalk Please can you review this code?
Should be fixed in my branch now!