Deleted files in tmp directory which shouldn't be in the repo.
Added .keep files into tmp directories to ensure they're created on a fresh checkout.
Bugfixes to external login.