Changes to API and GUI

Added lstavailablepermissions to API

Updated GUI text