REST: Introduce trait for handling Status objects
The new trait provides conveniance methods for logging and throwing errors based on StatusValue instances.
Change-Id: Id7cbacb744bee79cd8a6f61291a26b36e6243053