minor formatting, cleanup
flatten the middleware array

so that loaders (that create an array) can be used inside a user-defined array of middlewares.

also clean up package.json
Merge branch 'origin/v0.5.0'
Merge branch 'origin/v0.5.0'