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

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