calculator: add hex/binary mode

Change-Id: I63bbe33689a0ca9e07410701192018ab5f08641b