factor out filenames
set lock on login failure; don't try to login if lock exists
fixes Issue #4
Merge branch 'master' of ssh://github.com/geofrey/studio-vs-perforce