bugfix to userlib::logout(); added yet another possible callback to oauth; various other fixes