Update to Jersey 2.x

https://www.pivotaltracker.com/story/show/52200823
In the `jersey2` branch, we suggested doing something useful with dispose. Can we invoke logout here? I can find out through trial and error but..