refs #8. implement the emp app management.

merge with trunk。