messages: moved legacy files and mail utils
comments: stops toggle event propagation

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: JavaScript moved to static

* Moved JavaScript to toggle comments in separate static file;
* jslint on aforementioned JS.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>