Updated Module definitions.
Complete rewrite to allow more flexible standalone scripts and a small, lightweight manager