[WIP] read build ID from db in commonplace, command to store build ID to db (bug 1083185)

PRing this pretty early as I'm knocking out soon.

Still needs tests, more error handling, a migration.
Maybe we want it to follow our `ModelBase` so that it gets a `modified` attribute and cache-machine support? Not sure.