Port current Wiki documentation to Sphinx

This a strictly a conversion from Markdown to ReST.
It still needs to be checked and corrected, as there are references to functions or features that have been changed or removed for a looong time.