add basic module framework (learn from nginx)