Implement basic shortcuts support
Refactor "server/main.c"