Initial commit--one long afternoon of hacking.