More fixes to get a compilable version, will re-enable triggers/rewards as spout provides an API for them.