Initial port of Locale plug-in SDK