Made endpoint types really comparable and fixed clang compilation
Implemented routes message reception