Events and dynamic scopes

- Added lifecycle events for menu (show.bs.context, shown.bs.context, hide.bs.context, hidden.bs.context)
- Added scopes for dynamic DOM elements