Upgrade Jersey from 1.18 to 2.6

Upgraded Jersey and the configuration for the restful servlet. Upgraded
dependencies as well.