Refactor message list template, move hooks out of template, add hook for plugin acces...