Implemented Resteasy integration, other fixes