Flakey metadata upload and foolproof logout. (#20)