Initial commit

This has all of the code from the Earthworm project, plus some
modifications to make it easier to build T-SQL SELECT statements.