feat(library): add module system API

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>