fixed option parsing (opt.on returned nil)
nice version of optional cors support
applied comments from Sylvain

https://github.com/rock-core/tools-orocosrb/pull/11