rakefile: move token handling code out of main rake file
also: read token from environment variable