added std::map container for templates to make extensible
moved server bind addr/port logic inside constructor block