Initial pear-packaged code for Castanet.

Fixes #1 and #2.