This MR includes several chat fixes and updates in order to make it work properly on rails 4 Noosfero.