moved categories and optiongroups to Settings

Updated other classes that referenced categeories and optiongroups.

OptionGroup clean up.

Fixes #154