Move codes under the lib directory following CommonJS Packages spec