Split build.xml into multiple files.

Also, remote get_locales.php at it is not needed anymore.
Finally, add new targets into doc.xml to handle Sphinx i18n.
Fix the path for doc i18n in conf.py.