Support for whole directories, file symlinks and some bugfixes

This adds:

* Support for adding a whole directory via the --dir (-r) option
* Support for adding symlinks (only works for files that are already in the table atm)
* Minor bugfixes.