Fix dynamic_bitset
Add peer_failure stat. Improve extension mangement.