Rename api->index to improve URLs, remove dead code