Also fixing up QML/JS code style, and sorting out unnecessary or missing id qualifiers for property access.