Changed REST http implementation to Jersey, several bug fixes