refactor library dependency management

Upgrade resteasy to 3.0.4
Implement a default protomtion calculation solution