Ajax settings hook

Updates documentation and adds a hook for overwriting ajax settings.