add tests to rest. Add converter JSON <-> joda datetimes