Added various functionalities for TrustedObject

- STILL INCOMPLETE (but compiles and runs)
- Certificate verification works