Tidy up external dependencies task
Automate loading of everything in lib
Pull depedency checking logic out to a tested lib class