arrange the code more reasonable.

affected files:
Makefile:modefy to compile all the project automatically
src/Makefile: add to handle the src sub directory file
mainsvr.c->src/mainsvr.c move the souce code the the src sub directory