Errors messages occuring during the Serialization process are now incorporated in the thrown exception. This enables the via-rest-api to give the user some sense of what went wrong.
Added test for badly formatted xml
Added check to JAXBException handling to make the exception's Linked Exception is not null and its message is not null.
Merge pull request #173 from sean-morris/dev

Dealt with potential NPE in LinkedException