Fixed up the initialization function and added two utility functions.
Fixed up the initialization function and added two utility functions.

romaimperator/trustauth-firefox,romaimperator/trustauth-firefox