Change the order that the plug-ins are defined so that third-party
libraries appear first, followed by node.js style classes, followed by
namespaced classes.
Added a failing test to verify that libraries dependencies precede the
library that has the dependency.