Improve close handling.
Added trim functions.
New config parser.
Basic getopt integration.
Boolean parsing.
Improved error printing.
System error code.
Absolute logfile path.