Update ajax.lib.php

Add a delay before making request, may avoid multiple request to server when typing search request
Update html.form.class.php
Update ajax.lib.php
Merge pull request #1976 from frederic34/patch-2

Add a little delay in ajax_autocompleter