Merge changes I0677bca4,I7cad6529

* changes:
  Fix autolaunching.
  Create a PackageMonitor instance for each profile.