Add SIGTERM and SIGINT handlers.

This lets us gracefully terminate the process.
Import tinytest.
Move tinytest into another directory.
Move tinytest to ext/
Update README
Merge branch 'lame-duck-mode'