Merge pull request #309 from gorthauer/master

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

[bearermanager] total refactoring