support multiple threads, remove comment parsing

* add threads table
* turn `valid_comments` view into base table
* add `permalink` column
* improve indexes

comment parsing should now be handled by app logic
add columns for scheme name and module
finish unified arbitrary thread support

* remove obsolete views
* remove "author" constraints
* probably other changes
miscellaneous improvements
major overhaul