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.
Merge pull request #5 from vasuchetty/master

Bunch of small UI fixes
Added the numjs dependency.