Elkpr/397

I'm breaking down https://github.com/elkarte/Elkarte/pull/397 in two pieces. This is part one, reworking updateStats(), and addition of simpleActions hook.