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

Replace with one pluginsLib.i
Merge branch 'master' into u/pgee/DM-1217
Merge branch 'u/pgee/DM-1217'