Refactor package structure and add factory class for NioProcessor. Also
add build file for auto-packaging.