add unit tests
more flexible storage of json
use of jackson instead of jaxb/jettison