Beat, found the problem. I had the system_SEF plugin enabled. It kept giving a false url to login or logout, as in /login.html. I disabled it and now everything is fine (and i saved myself $25
What is that plug in for anyway? Is it a remnant of sh404 or a joomla system plugin?