upgrade jersey version to from 1.x to 2.x
add errorhandler and use APIException to create response JSON
use Autowired in resource layer