Library for managing communication protocols as plugins