bug fix on multi-thread issues.
upgrade CXF to 2.7.12
beautify & cleaning
re-organize code