Added API to add/edit options. Fixed bug:  getActiveCategoryObject() does not return the category object correctly for a SelfReferential view if the SR table is a foreign table of a parent view