enhanced api queries
fixed 2 bugs

we need to use the current site in case we get logged out
optimized some other code for new handler
disable option to change proxy while logging on