Wrap WordPress API in an Angular service.

Remove the $http service interactions from the blog controller and
replace them with an angular-resource controller to improve usage.