Fix Inasafe #1191

This PR adds a connect to each layer's layerNameChanged signal. When the user changes the layer name using qgis, if the layer has keywords, the title of the layer is updated there also.
You know that 'r' was there intentionally? It tells python that the docstring contains regexes so pylint doesnt give errors for it.