a bit more normalized schema

so far for mysql only; Includes a stored procedure for inserting the data
forgot a foreign key
[WIP] move SQL queries to new schema
rewite some more SQL (untested)
migration mysql script
SQL for updating the line count cache
fix SQL thinkos
translate more SQL to new schema
fix summary saving
skeleton for the indexer
more search skeleton
[search] index all channels (untested)
fix some thinkos
[search] fix schema; add some progress indicators
add a tool for creating the search index
[search] index consecutive lines from the same nick as a single document
wire up search backend
no need to store the nick

it is enough to have it indexed
more conservative update of caches
update favicon URL in search template