Unit tests and bug fixes for ATS. Remove dependency on WindowsAzure assembly for functional tests. Remove redundant tests. Fix bugs in query pipeline and batching

Rename classes.