Rewrite htserver to use a mempool struct and multiple mempools (for, e.g: user and world template values)