Refactor the dependencies widget into a separate file
This is already being used (forked) in KDevelop and I plan to use it in another place.