Added some helper methods, modified schema provider to support views.
Merge remote-tracking branch 'origin/newQueryBuilder' into newQueryBuilder