This is the initial code dump from Janik. I obtained express permission to license it under MIT, see the next commit.