Switching to DOM model
Parser now working

Picks up components in example config file, loads into hashmap.
May need to be extended to make it consider the port numers. Perhaps
<ports><1></1><2></2></ports> would be appropriate.

Also added a logger. Need to sort out the formatting into something
neater though.