Feature/472 convert config to yml

Converts config to Yml, validates it and makes config easier to parse.
Good point, I more or less randomly copied all methods from SSP code but a little organization does not do any harm. That said, this is a workaround so it will (should) dissapear eventually.