Rails 4 compatibility and tablesorter update

Hi,

I updated your gem to work with rails 4 (as others did) and updated the tablesorter plugin.

Since there were quite a few bugfixes in tablesorter i think this commit would be useful for users.

Regards
Erik