Use QgsMapLayerRegistry to add layer to canvas.