Fixes
Fixes
COmmit of part of the changes. Found some problem in the SQL generation due the sort (as that needs to do more queries before the previous one). Pushing first the bits without any error to make it available in github
Merge branch 'master' of https://github.com/lightblue-platform/lightblue