Implement self-install. Fixes #2.