Trailing whitespace and controls are now removed from device ids
Updated gitignore
Moved code for tidying up devicenames to util.c
Implemented #8: Implemented a whitelist / blacklist system.
Bugfix: Was occasionally passing an invalid file descriptor to read()
Bugfix: opendir()/1 target should be freed