Change thread title on its edit
Better order of visibility checks in thread views
fixed permission check on edition
Improvs and tests for editing threads and posts
Fixed thread visibility test