Implement .plexignore, refactor some Utils