Html: Optimize fitDataWithTitle() method

Split key compute and apply key to data and title. Compute key by fitMode
using raw PHP method, so the logic is simple and clear. Create fitData() and
fitTitle() method to apply computed key array, simple and easy for future
maintain.

Rename this method to fitTitleWithData().
Html: Rename getSqlInfo() to getSqlConfig()

Also merged getSqlInfoFromUrl() method.
Html: Customize which column can sort

Also changed link on thead, on th current orderby, link point to it's reverse
order, on th not current orderby, link point to orderby it and use default
direction defined in config orderbyColumn.