Changes to login and bug fix to versions
      - Adds support for login using .synapseConfig file in home directory.
      - Fixes circular import in version_check.
      - Removes login function from commandline to have unified interface.
Fixes error with nonexistent cachedir.
 Fixes error when query returns 0 results.
Merge pull request #13 from larsssono/master

Updates to authentication to handle configuration files