Add login failure test
Get rid of authConn().

Add some helpers like `withAccountsConnection` for running functions
that need a connection to the accounts server.
Fix missed stderr login prompt
Change comment from copyApp to createApp
Add some deploy tests