Change _execute_sql, fetch_results, and direct_result to methods on Query
Make merge_extents and fix_extents_overlap be methods of Query
Move flask.g._should_explain and flask.g._sql_profile to be members of Query
Remove spaces around equals sign in kwarg
Replace use of dict.has_key with 'in'.
Don't try to UTF-8 decode the GET query parameters.
They've already been turned into unicode strings for us.
Revert "Make merge_extents and fix_extents_overlap be methods of Query"

This reverts commit 2043cf5ae187a9cf3bde77b41d7556645b297604.
Rename Query._execute_sql to Query.execute_sql
Refactor Query a bit to get rid of the need for flask.g in SQL profiling. Closes #114.
Delete set-env.sh, cc.sh, and unset-env.sh, none of which was used anymore. Closes #54.

pre_process() and post_process() now take care of this.
Change double quotes in search() to single quotes.
Refactor search() controller to make it more comprehensible and ferret out bugs.

I was tired of looking at that ugly mess. This still isn't great, but it's a start.

* Don't crash when limit and offset query string params aren't parseable ints.
* Don't crash when format=json and we're using the error.html template.
* Deal with negative limits and offsets. Hey, why not?
* Don't HTML-escape the query text manually anymore. Do urlencode it when using it in a URL.
Oops. Use the right tree if there are multiple ones.