add 'favorited' and 'liked' fields to topic api

Adding these two fields makes it convenient for api-client to judge one
toppic is favorited or liked by current authenticated user.