Refactor I/O code

This moves the automated format detection to ``astrodendro.io`` and also allows recognition via the file signature. The motivation here is that if we add data loaders, they can share the identification code with the dendrogram loaders/exporters.