Remove `raw` stuff.
Use `dump` instead of `print`.
Some fixes for records.
Fixes for content fetching.
Merge pull request #130 from xiaohutai/fixes-for-templates-2

Small fixes for templates section.