added spring hateoas support and tests