Added querying CREST resources with lambda expressions. Other fixes.