Command line parsing of options improved

1) Command line options are now case insensitive e.g. -debugui/debugUI/
debugUi true will all work
2) Options set on the command line will now take precedence over
defaults and those loaded from options.cfg
Merge pull request #527 from cfailde/options

Command line parsing of options improved