Create an endpoint for diff file line expansion
We need to have a unified diff line expansion backend API for commit, MR and compare revisions views. Right now the UI and logic for diff line expansion is different between these pages. We need to decide on what the final UI and API should look like and implement it.