not using select, instead using simpler settimeout, reorganized login to simplify testing, added non sql server dependent tests
Merge branch 'error-handling'