Wrap GoogleOauth into a testable module

add widget template code to front-end