Moved template parsing into the server construction function and made the parsed template a field of the server struct