DATAREST-200 - Embedded associations get rendered again.

Removed too strong guard that prevented managed but not-exported types to be rendered at all.
DATAREST-199 - Tweaked unmarshalling of JSON payloads.

The BeanWrapper used to set and get values of entities now gets a autowired ConversionService applied. Simplified collection and map creation by using Spring API. Added test case to update an entity with an embedded collection.
DATAREST-203, DATAREST-75 - Initial support for HAL.

This commit introduces support for HAL rendering and making it the default rendering option. The configuration now registers an additional MappingJackson2HttpMessageConverter with the according HAL modules registered and makes this the default JSON renderer if the default media type is configured to HAL (which it is by default). To change this, set RepositoryRestConfiguration.setDefaultMediaType(…) back to application/json.

Refactored the PersistentEntityJackson2Module to turn the PersistentEntityResource into it's correct shape (turning associations into links) and the delegate to the default rendering, so that the HAL customizations provided by Spring HATEOAS can kick in. Adapted test cases to the change in default representation format.


Upgraded to Jackson 2.3.0, Spring 3.2.6 and Spring HATEOAS 0.9.0.BUILD-SNAPSHOT. Upgraded to Gradle 1.10.
DATAREST-209 - Removed hard dependency on Jackson Hibernate 4 module.

The build script now declares the Jackson Hibernate 4 as optional dependency to avoid being registered in a non-Hibernate environment. Tightened auto-registration checks to also check for Hibernate 4 presence at all.

We automatically activate verbose date rendering when registering the Joda Time module.
DATAREST-93 - Removed Gradle wrapper script customizations.
DATAREST-210 - Added workaround for SPR-11251.

We're now using @EnableHypermediaSupport via a delegated class to prevent @EnableHypermediaSupport from breaking when RepositoryRestMvcConfiguration is subclassed.
DATAREST-213 - Make sure legacy representation can be activated.

Altered the order of HttpMessageConvertersRegistered based on the default media type being defined. This causes the legacy representation to be rendered as default representation if the default media type on RepositoryRestConfiguration is set to something different from HAL.
DATAREST-203 - Fixed accidentally broken RepositorySearchController.

Due to the change in the default media type, the RepositorySearchController was totally broken as it used "produces" clauses in the request mapping. I've removed them and added test cases to make sure the search resources are exposed and are accessible.
DATAREST-203 - Added test cases to show POSTs are generally working.

Some polishing in PersistentEntityResourceArgumentResolver.
DATAREST-203 - Fixed listing of searches.

RepositorySearchController now returns a ResourceSupport instead of a Resource as it will only return links anyway. Latest changes in Spring HATEOAS prevent Resource from being used with collection based content to prevent invalid rendering.
DATAREST-198 - Added test case accessing linked resources.

Added Author and Book domain types to JPA tests to show that following the referenced properties works.
Merge branch 'master' of https://github.com/spring-projects/spring-data-rest

Conflicts:
	spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.java
Resetting the default return type to JSON