Start working on api.php

(and fix typos, and adjust .htaccess to work where everything is in
public_html)