Unfolded deeply nested loops and conditional-branches in views. Improved server responses, and fit client-side code to new responses.