Unexport server struct `loading` member
Move HTTP serving into a dedicated `serveWorker`

 * Prevent multiple calls of server stop method
 * Refactor template execution code