Incremental improvements

Made debugging output in hwmllib optional, except when assert fails,
then added more, added options for standard output to be redirected so
it could be written to a file in code rather than in a shell script
redirection, added support for using the meta directory, improved the
output of the csv files, added support for folder_with_name, safe_open,
and greatly improved the functionality of the Line class.