core: set lager metadata for modules and per-site servers.
Issue #781