Removed APIs deprecated in Jersey 2.7 or earlier.

+ some additional cosmetic fixes.

Change-Id: I936f5b170256557435035871af7a0b94836ab9bc
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>