Massive clickcode rewrite from SuperSayu and /tg/

Full details are at https://github.com/tgstation/-tg-station/pull/1206
This needs heavy testing.