carla-plugin: Send max-plugin-number var
Move 2 functions to common file
Misc