Add postsAPI service & angular-resource extension