Shedna/enable third party auth on studio

@talbs can you check for the buttons' style ?
@johncox-google if you wanna take an eye on this ?
cc @nedbat
Repeated JS code also present in lms and below. Consider extracting into a utility method.