Update to new plugin API, add license