Move bullshit into a separate repository.

The library, not the worst parts of this code.