Add slim support
Refactor template rendering code

- Create classes for each type of code example
- Use ERB for template rendering

Signed-off-by: Bebe Peng <bpeng@pivotal.io>