Added working message for ajax functions.
Added logout.