gh 207

partly resolves #207 as suggested by dagolden. 

Not sure I am testing it right. I added return value to register_plugin as in D1. 

I think that import still has D1-specific stuff, but I don't understand it.

also some pod and perltidy