Refactored BitOperations to common util. Refactored CoAP message codes.