This creates the Package class to represent packages, and the Scope class to represent scopes in general. The library functions are worked up to support scanning scopes for declarations that are imported by "use" clauses.