adding config class, refactoring ctor & factory method.
uartex handle factory create refactored. now the factory method is configration based.