[bearermanager] change logic to repair lasts statuses
[bearermanager] total refactoring
[bearermanager] some improves
Merge pull request #308 from trett/master

[bearermanager] total refactoring