Nic profile changes

- implement 3 styles of profile definition
- support both config.options and config.get
- xml unit tests fixed up