Make "setup.py test" work
Expand .gitignore
Add swap files to .gitignore
Allow overriding format for file source

Rather than figuring out the file format automatically based on
extension, it is possible to manually override it by passing a `format`
argument.
Bump version