Use a map to sort for significant performance improvements.

In my testing, a large table that previously took 50 seconds to sort
now takes ~110ms to sort.
Disable debug by default.
Don't scope th to thead.
Minified with uglifyjs.
Fixed issues with custom sort functions.
Merge pull request #7 from jsmecham/master

Significant increase in sorting performance.