Provide Executable instances for TableQuery and BaseJoinQuery.

Backported from #782, fixes #746. Test in TemplateTest.testCompiled.
Merge pull request #785 from slick/tmp/issue-746

Provide Executable instances for TableQuery and BaseJoinQuery.