Add yaml safe loader and dumper

Closes-Bug: #1332610
Change-Id: Ib873dacee37d97f3d50d1be237e20619b2217397