Support ContextWrapper objs with LoginButton.

This particular change enables support for Mortar-based apps, which
render views using a context wrapper.
Merge pull request #401 from stevenle/dev

Support ContextWrapper objs with LoginButton.