refactored auth handling in tests

for readability
integrated logout functionality

just a thin wrapper around tiddlywebplugins.logout