Computation of TDF redistribution parameters added.

Still need to add more to finish redistribution.
Redistribution implemented.

Still buggy and still has a lot of debug code, but the basic idea
exists.
Added a .jshintignore; ignores package.json and bower.json
Bug fixes redistribution.