Slt 418 send web stats

Re-factored code to be able to send stats, this also includes a next merge