Remove globals and add maxtokens identifier for maxed closed crowdsales