[net] Add role for user

  - fix a issue with search_emailusers
  - fix bad memory usage
  - add id column for mysql
  - returning role string is not NULL string now
[net] fix utf-16 issue under win32
Merge pull request #60 from Chilledheart/patch-1

[net] fix utf-16 issue under win32
Merge pull request #49 from Chilledheart/usermgr_add_role

 [net] Add role for user
[server] fix mysql multiple id in get_emailusers
Merge pull request #62 from Chilledheart/patch-2

[server] fix mysql multiple id in get_emailusers
Fix SQL bug in get_superusers.
[build] add cmake build system

 - add missing includedir for cmake
 - remove shared library version
 - python support