Add bundle instantiation helpers

Add some helper functions for use by upcoming changes in the Sugar shell.
Improve bundle API for bundleregistry changes

The bundle API is a bit confusing and inconsistent. Fix up the
ActivityBundle and ContentBundle classes to be more consistent and to
work with the ongoing improvements being made in bundleregistry.