Fixes: lp:1464893 * https://bugs.launchpad.net/kicad/+bug/1464893
Extended BOM_PLUGIN to a class and moved the plugin construction related code there.