Changed directive registration and custom mapping to not rely on global
variable.
Removed "translation" of automatic bootstrapping to manual because it's
not needed for all browsers