Add a `BuildsetProperties` cache and seed from `addBuildset`

This diff adds a cache around the buildset properties table
accessed from `getBuildsetProperties` and seeds it from `addBuildset`,
to avoid extra DB accesses immediately after adding a buildset.
Merge andrewjcg/buildbot:cache_bsprops (PR #1152)

+autopep8