Pass properties to Resource._needs_update()

When we start obtaining old property values from the database instead of
the old template, we will want to compare them separately.

Change-Id: I0b6ca33a320aa74e77991e7d0a5f9291e61fc88c
Merge "Pass properties to Resource._needs_update()"