Add a basic `export` view that dumps JSON

- upgraded swig
- not using a `yield` based flow yet