Added a BaseID class, and a supposedly working equals() method for
performing ID-based comparison.