Move plugin code out of __init__.py
Add mechanism to register importers