Added build functionality to generator-base.

Generator now has create, validate, save, and build functions to deal
with creating modules. Still working on making a proper build routine,
though.