Making server plugin-based

1. Changed most of the code not to use C++11 (for use by older
compilers).
2. Now all appliction level protocols are supplied as plugins.