Switch to use angular $resource for retrieving content.