Merge pull request #1 from yifan-gu/master

packet module and testing
put test bins under 'test' dir
finish peer_init and other peer prototypes
add chunkline state; modify makefile; astyle
add some comments