some server stuff and tests
Merge branch 'master' of https://github.com/Sy4z/The-Excellent-Adventure