Move to swig template engine instead of ejs. Closes #8