Changed CollectionInterface - added isEmpty()
Fixed Relation::hasReferenceFor()
Added more save graph tests
Changed Query
  implemented count()
  added countByPk() - which has to be improved
  added copy()
  added __clone()

Added query tests for counting
Changed creation of connections during unit tests, now using a connection pool