Fixed bad discussion-item onclick handling
Added preliminary attachment support