Refactor tables into an extension of jquery

Allows for $(table).animatedSort() etc…