Ampache: reauth if the session expires

For any Ampache API call, this checks if the response document reports a session expired error, and if so, reauths and repeats the API call before passing control to the response munching callback function.