Add some tests for some functions in main.go
Make sure that isPodcast() doesn't depend on global var
Move utilities to own package
Rename a bunch of util functions
use os.TempDir()
Added tests for Lock function