Add scope support

This allow multiple nested set trees in the same database table.