adds a jsonmodel mixin for localizing error messages

Delivers https://www.pivotaltracker.com/story/show/38630637