Major update.
Modularized server codes.
Removed unwanted codes.