Fix gitignore, add management of the API subfolder