SOLR-3911: Make Directory and DirectoryFactory first class so that the majority of Solr's features work with any custom implementations.