Refactor Category and Priority management in Logger

Generalize BitMask concept in the Core namespace,
apply it to Logger Category and Priority Level