auto-populate components in COMPONENTS_DIR into layout.ejs.

I am not a huge fan of this commit, and it violates DRY to some extent, but I tried putting all the code as close to the other proxying code as possible so that it doesn't get out-of-sync easily.

I suspect this will all be refactored and stuff once we decide on a more formal specification/schema for component filesystem structure.