Make lib a single module in a single file

... so I can easily shove it on play.rust-lang.org