Fix registering actions with get_actions().

Move get_actions from plugin.py to extension.py to get registered.