Library for plugable protocol handlers