Add support for union queries
Fixes

fix NPE in select query, calculating cache key
remove unwanted logging
fix ds in topNQuery
remove unwanted loggings
Add toString for better logging
review comments
refactor method
review comments

remove toShortString
minor other changes
Merge pull request #528 from metamx/union-query-source

Union query source