Auto-quoting of tablenames, auto-quote when AS keyword is omitting (for tbls & cols)

Also refactored to fix DRY violations and to prepare support for
subqueries wherever a table is expected (but still need alias support for
subqueries)