Add list dependencies function

List all dependencies registered in the container
Same here, I'd like to avoid adding newlines for no reason.