Stockholm format parser/writer

This is in the new parse format that @ElDeveloper created in #235 so merge his first.
Note that all of these test doc strings should be on a single line, but we also decided that these are not necessary (though I can't find the issue now to link to it) as long as the method name is descriptive, so it might just be easier to drop the docstrings from your tests.