Add swag.cpp
Merge branch 'master' of https://github.com/toroidal-code/swag