Reworked protocol definitions + yggdrasil support