net.h & main.c

Relocated  marcos from http.c to net.h .
Replaced some remaining magic numbers.
Call usage as soon as it gets option 'h', so flag_h is no longer
necessary.
Merge pull request #27 from ftmomoaaa/master

net.h & main.c