Add external.Base class to external plugins

By using a base class we can be bit more DRYier in the actual plugins.

Change-Id: Ic7d6b41e2bb77d06342bc25c2f1d7f519054ed0f
Merge "Add external.Base class to external plugins"