modules/template,header: Added command line options parsing and a way to embed templates and scripts into one single script.