Change nunjucks template engine to swig. Add minor improvements.