feature(http): Add elgg-resource directive for rendering content from a JSON API