Fixed disregard due to a wrong query

Signed-off-by: emanuele <emanuele45@gmail.com>
Slight re-work of the _api method and small change to is_not_guest to better handle these methods (at least I hope)

Signed-off-by: emanuele <emanuele45@gmail.com>
Now is AJAX and not SJAX + fixed some (several) errors

Signed-off-by: emanuele <emanuele45@gmail.com>
Missing global - thanks Norv

Signed-off-by: emanuele <emanuele45@gmail.com>
Just a tiny comment and a probably more meaningful variable name

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #549 from emanuele45/ajax_improved

Ajax improved