extracted permanentMessage and regularMessages methods in template
 Display messages in model even when there are not elements and  table body is not shown
Merge pull request #151 from Zentyal/jag/model-messages-fixes

 Display messages in model even when there are not elements and  table body is not sho