Moved table-sorting to client, some refactoring
Refactoring, mainly improvements regarding Hibernate
More Hibernate improvements