Widen compatibility, change "index.php" to "./" in ajax-requests.

Prevent ajax bugs for certain web server configurations when permalinks are used.