add a simple task manager to prepare reusing client-server connection
fix a definetion in common define.hrl