Added framework for account management.

Author:yangyingchao, 2013-02-04