Move connection stages into header file so that they can be referenced
by tds_tokens.