Solved several small issues with JPA

## Caution: may conflict with #19

- Use sets instead of lists for model relationships
- Use eclipselink instead of hibernate