refactor app to use JPA and latest Hibernate,Jersey,Jackson