moved gmail api script load to index.html body

for faster html loading
authCheck promise for immediate mode check