fixed some issues

#9 js error when not logged in
#4 Ajax blocking+ optimisation loading overlay

mock.cgi, sub handle_login handles "original_target"