add dropwhile and takewhile iterators
auto merge of #5938 : thestinger/rust/iterator, r=pcwalton