Fix swig example and force non-autoescape for embedded content.
Fix problem when engine names doesn't match file extension.
Add main libraries so that require works as expected.