remove redundant set_site impl.
defining interfaces
add template injection mechanism
trailing whitespace
explanatory comments
flake8
fix inconsistency
Merge pull request #1140 from getnikola/template_injection

Template injection