Added support for partials.

- Relaxed style rules on indentation.
- Added `registerPartial` method to attach partial templates.