Refixed persistent sort and search in table, lined up columns, and made resize less sketchy.

*CAUTION*
Don't pull this yet - I found more bugs!

Should address issues:
#868, #747