Convert to pkg format

The main thing this pull request does is to convert the repo into the new package system format, so that it's easy to install with `raco pkg` and can be listed as a dependency for other packages.