tdb2: make tdb1_open use attributes for logging, hash function. This brings it closer to tdb_open(), so we can unify more easily.
tdb2: test: import tdb1's tests. The main change is to s/tdb/tdb1_/ everywhere.