Fix events test.
Refactor generator file operations.
Gen: Refactor renderer.
Gen: generate YAML config files.
Sample: use yml instead of js.
Reorder middleware.
Add a 'demo'.
Add a 'demo'.