Hangouts feature

a fix for previous PR on this feature.
Refactored js and specs for loading of hangout api and rendering the button.
why did this change?