TODO unpick me more!
Utils for error handling with ErrorT / MaybeT
Nicen horrible nested conditionals in basic auth
Allow finding extTask directly from a NewExtTask
Clean up horrible nested conditionals in sync API
fixup! Nicen horrible