[Platform][Lifecycle] Add LifecycleException, errorCode, errorMessage, bundle concept

Locale information will be considered as threadLocal, and will be
transparent to Lifecycle Module