Add model & API to store monolith temporary stats.

See bug 839148 and bug 839150