Sort out dependencies and add vendor