Query analyzer first version

The initial version of query analyzer, written during the hackaton kickoff.
Not yet capable of offering index suggestions.
Merge pull request #19 from jonasz/master

Query analyzer first version.
(need to remove these files from pull request #18)