Add VocabularySet.from_dir class method

Needed this refactoring to ease unit-testing of this class.