Adaptation to new dedicated-api + manialive-lib

Fix incompatibilities and some type hints to work with both https://github.com/NewboO/dedicated-server-api and https://github.com/NewboO/manialive-lib/tree/new-dedicated-api ;)
Btw, if you're wondering why there are so many lines without real changes: my git is configured to remove spaces at end of lines and force Unix line endings ^^