Make Config compile properly
Add <mutex> to the list of includes
Improve compilation, add some ServerModule hooks, and implement slightly more of the functionality