Adds dependency for Spring HATEOAS. Refactors build.gradle file.