Support ContextWrapper objs with LoginButton.

This particular change enables support for Mortar-based apps, which
render views using a context wrapper.