Refactor trusted bits into their own file,
separated from inference.  Also some cleanup and comments.