create WriteConfigBytes to dump config into a byte slice
rename WriteConfigBytes to Bytes
use defer do unlock
Merge pull request #5 from mauriciosl/master

Creates Bytes method to serialize the configuration into YAML