Added JPA persistence and Rest Support
Fixed compilation issues