improved the test script to short circuit
added swp files to gitignore
added connection and login code and related tests