Fixed usage of resteasy, added jackson annotations