Rewrite 'deploy - logged in test' to not rely on pre-existing apps.

Doesn't pass yet.