Added support for files and rooms linked in chat. Fixes #2