Delete empty directories when record is deleted

Fixes #1
Merge branch 'master' of https://github.com/rickydunlop/Uploader
Merge branch 'master' into me