Fixes #36
Changed id query from distinct to group by
whereSubquery and selectSubquery API changes
Merge origin/master

Conflicts:
	core/testsuite/src/test/java/com/blazebit/persistence/PaginationTest.java
Merge origin/master