core: Move toByteArray() from GuidUtils to Guid

This method will soon be needed from classes that are in the common
module.

Change-Id: Ib8e1b69107c042ff16a404fa1bf365a5f3f4a688
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>