lb: update the usage of workspace and juggler API

Use `model.properties.create()` to add properties to a model.

Use `err.details.context` and `err.details.codes` when printing
ValidationError.