move module builder to new tools package.
add unit tests.