Squash helper functions around the source into just one file.

Fixes #21