Add a LICENSE file and license headers.

Use a BSD-style license.  Also, add AUTHORS and commit some test files
that were previously uncommitted.