refactoring config reader.
start reading config from json, because the old strtok crap is .. well, crap.
server reads json config files now.