Metadata persistence in HDFS and MySQL

Partially implements the issue https://github.com/telefonicaid/fiware-connectors/issues/41

100% tests passed
Manual tests passed
Probably a comment explaing that magic (maybe including that example) will be useful for future readers (including ourselves when we forget about this some months in the future :)