Added File Lock and torrent file delete

File lock makes sure torrent file has finished copying to the directory
before attempting to read it. This way it won't crash after trying to
load incomplete .torrent files

I don't like having torrent files cluttering up my folder, so added an
option to delete them after loading. (currently it just moves them to
temp folder rather than directly deleting)