Based off Phil Sturgeon's CI REST API, a class to serve RESTful API from WP.