A minimal promise library for GWT