Make the composer and TopicCreator use category id instead of category name

Some parts of the application used the category id to refer to the current category, notably editing topic title and category in the topic view and the underlying data that is saved in the database. Others used the category name, namely the post composer and topic creation.

This changes the post composer and topic creation to use category id instead, to make things a little bit more consistent.

Also fixes #1171