Fixes for ajax auth. jquery-cookie added. fixes