Allow callback for read method
Allow *.optimizer.json instead of *-optimizer.json
Various improvements to dependency registration