[API] restore QgsMapLayerRegistry::addMapLayer() but keep it deprecated