DM-1217: Rearrange baseLib.i so that algorithms are in a separate .i file.

Replace with one pluginsLib.i