Added Bits#getAndClear, Bits#getAndSet and Bits#containsAll

Also made some variables local in other methods.
Merge pull request #808 from hneuer/bitsss

Added Bits#getAndClear, Bits#getAndSet and Bits#containsAll