Implemented rudimentary bootstrap stuff.

Fixes #9