Commit some old improvements to correlation

Possibly broken/obsolete:
Uses old syntax for PyTables.
Does not use sapphire (for esd download).
Possibly out of date API.
This should be in previous commit.