first commit, not compliant yet but likely good enough to start testing with Google js mail api.