Fixed basic auth. So far, /api/sites and /api/deploy/(sitename) are basically functional.