Add plugin mechanism and use it to load code generator plugins