Adds basic structure for feature negotiation
Signed-off-by: Ivo Calado <txithihausen@gmail.com>