initial import from https://code.google.com/p/gwt-oauth2/