Added WP IO class for handling requests

Using new WP IO class for handling requests

@jdevalk Please can you review this code?
Should we WPify the caching mechanism as well?