SYNR-537 and SYNR-539

More fixes to caching logic.  The client works without these, but some extraneous downloads might happen.
logout test user, formerly commited as 47697f4
SYNR-541 + unit tests

Fixed up more caching bugs and a minor login issue.
Code review changes:
- Reverted spelling (-ple -> -pal)
- Changed getting submission files to use another variable in the download function
added --teamName parameter to synapse submit command line client
Merge pull request #79 from kaysoky/fileCachingFixesContinued

SYNR-537, SYNR-539, and SYNR-541
added a test for synapse submit without --teamName
Merge pull request #80 from cbare/develop

logout test user and add --teamName command line arg
rolled version number to 0.4.1