More changes to plugin API.

Note plugins.py cannot go under karaage.common, because karaage.common
imports a lot of things and and can result in an import loop.

Change-Id: Ic065bf4d5cc055b15a87a58224e8705a7b9d2c57