Major refactor. Plugin no longer depends on filepickers.