Split plugin.py into a loader and UI part

Foreca takes a long time to load because of the size of the plugin. Postpone
actually loading it until the user actually starts it.