Prepare storage for per source check flags

Issue #540

Signed-off-by: Michal Čihař <michal@cihar.com>
Move unit flags formatting to template tags

This is presentation logic, does not belong to the model.

Signed-off-by: Michal Čihař <michal@cihar.com>