A port of HAL to follow the Symfony 2 JsonResponse objects.