Convert value from/to hex encoding

Values in atomic formulas could be represented as a hash. If the value
is hashed, it is represented in hex encoding. Binary parser and
serializer convert the value accordingly.

Bug: 143697198
Test: atest FrameworksServicesTests:RuleBinaryParserTest
Test: atest FrameworksServicesTests:RuleBinarySerializerTest
Change-Id: Ie10c4dcb0975c8d5768227ae224669f33cb16992
4 files changed