Moved template build to wwwserver library
cleaned up the init flow, moved the template build to the wwwserver library