Clean up root tree. Move API into api/