resource generation server setup

commits squashed
JPA annotations
cleanup
polling setup
Merge branch 'res-gen'