Add ratings
Frontend: Move render_field() macro to base.html
Frontend API: fix flatten_hw
Frontend: avoid long-running transactions