Added refcounting to Init/Term for balanced calling. Added a bogus call to create a string bundle on the main thread.
New embedding APIs for *simple* initialisation by hiding all the XPCOM initialisation and kludges that embedding apps have to do.