What excellent news!
Please post your solution for both in detail -- this has significant implications for many other mods. Thanks.
It still work in progress, when it will be completely finished I will post it.
For now I will try to implement:
Reward for convoy escort - special event, activated upon buying license. Will spawn additional "enemy" fleets that will target current convoy.
Reward for convoy destruction - used on default convoys. As long as selected convoy present and didn't despawned, license still intact. Can be acquired only if convoy present.
Reward for bounty hunt - special event, activated upon buying license. Will vary in difficulties. Also, the targeted ship will hunt you.
I also thinking about possibility of Reward for station raid - you acquire the license and you need to take down the System Defense Fleet of sides you too quest against.