Add basic code.
Minor fixes on some crashes.

You can get this to work with some minor manual interventions that
will be automated very soon. On other news, my first useful gem.