Add to the processing plugin a method for duplicating a vector layer in memory and optionally add it to the map registry

Method taken from Inasafe and slightly modified