Make sure to html encode form attributes.
Added the is_id() function to help forwards-compatibility.
Centralize tag saving through TagModel->saveDiscussion().