Made some variables final
Added "X-PressGang-Version" header to the list of headers accessible via cors.
Added "X-PressGang-Version" header to the list of headers accessible via cors.
Added allowed origin to exception mappers, added a constant prefix to error text, and moved some constants into the common REST library.
Fixed up exposing headers
Fixed up exposing headers
Persistence exceptions now throw InternalServerErrorException
Added not found exception mapper
RollbackExceptions can happen when an entity is saved at the same time on two servers. It has been caught and will result in a HTTP 400 error, instead of a 500.
RollbackExceptions can happen when an entity is saved at the same time on two servers. It has been caught and will result in a HTTP 400 error, instead of a 500.
Merge branch 'devel' into ha-devel

Conflicts:
	pom.xml
	src/main/java/org/jboss/pressgang/ccms/server/rest/v1/RESTv1.java
	src/main/java/org/jboss/pressgang/ccms/server/rest/v1/base/BaseRESTv1.java
Merged devel
Added some comments
Merge commit '99dee28c2a6bfd06efe695137802b8a9a7139077' into ha-devel-1.1

Conflicts:
	src/main/java/org/jboss/pressgang/ccms/server/rest/v1/base/BaseRESTv1.java
Added a mapper for the readerexception, which is thrown when the server receives a JSON object with fields that it does not recognise (among other things).
Mapped all exceptions produced by rest easy, as defined in http://docs.jboss.org/resteasy/2.0.0.GA/userguide/html/ExceptionHandling.html#ExceptionMappers
Fixed merging issues
Merge branch 'ha-devel' of github.com:pressgang-ccms/PressGangCCMSREST into ha-devel
Merge branch 'devel' into ha-devel
Added the "Product" and "Version" field population and fixed some bugs to do with additional data being lost on invalid specs.