place derby.use before createApp

fix the example code so that component plugins load properly