Hibernate4 module fully finished (+8 squashed commits)

Squashed commits:
[216fa60] Repair core tests and completely remove hibernate dependency from itself - squash
[debe37c] to squash
[380ab28] Repair core tests and completely remove hibernate dependency from itself
[de3e436] Move test to uncouple hibernate dependency from core
[179a347] Support hibernate as optional runtime environment
[6db3e8b] Remove unnecessary casting
[e703898] Split hibernate dependency from core legacy refactor
[081d912] Split hibernate dependency from core