added max tweet id to mongodb solution
cope with rate limiting
tidy up