Begin implementing TUF components in production-like code.

Still a lot of TODOs and needs some testing, but is starting to feel
like real code.