Make portlet instanciable.

Add pint message JavaScript code for each of the consumer portlet on a
page.