Add context methods

Able to get and change contexts to switch between native and web views.