Connection manager based on libevent

1. first version
2. multi-threads