add NIO example code

1. add ChatServer and ChatClient.java
2. some config changes