Query analyzer first version

The initial version of query analyzer, written during the hackaton kickoff.
Not yet capable of offering index suggestions.