Update Index.rst

Add information that the registration of an ajax handler belongs inside the ext_tables.php, because ext_localconf.php can also be an option.
I would place that sentence at the end of the paragraph, rather than at the end.

And maybe "an extension's" sounds better than "the extension's".