Revamped Config parser

Config parser is now cleaner and has some validation checking.
It parses section, put they are not  used for anything useful yet
It also allows comments on a single line (no inline comments yet)