Extract tree and try to use it.

Also save a dump of the tree for an
example.
Use readFileSync instead of readFile
prefer single quotes
Import icalendar module
Parse dates and create calendar.
add duration to config template
make end dates midnight of the following
add calendar name and description
make port configurable
use __dir_name to find config
use a secret key