Adding the ability to set and get locale

This pull will add the ability to set and get locale to system settings.  
```
std::string getLocale() const;
void setLocale(const std::string& locale_str);
```