Line count for each title in mysql table texts

Used in:
1. Print line count in ui/index.php
2. Print line count when updating texts

Other changes:
1. Two columns of titles instead of 3 columns in ui/index.php
2. Fix a link in ui/index.php: pass access_token to text_mgr.php
3. Ignore .swo
Add expected achieving time in statistical data

And removing all alert() in alternate.php to prevent spamming stopped