Some API changes

Added new functionality to LocalController.
Added SDTemplates and SDLanguageItemCollections.