Add support for filtering non-LGPL plugins

Add support for filtering operations with more restrictive
licenses (e.g. GPL) at runtime, by default only operations
with licenses no more restrictive than LGPL are exposed.
tests: Add test case for license filter