Functional WIP on refactoring code to work with latest TUF library.