Stopped using deprecated OperationTypes.COUNT

Instead using OperationTypes.DATACLUSTER_COUNT.

Db.countRecordsInCluster now accepts a cluster object, name, class or
id.
Added test for lightweight edges. Made more tests pass.