Walkthrough of building Wordpress Restful Resource API