Fix binary encoded expiration values

This fixes both the 'expires_in' parameter for response and 'expiry_time' property for grant contexts by preserving the values as integers.

Individual commit messages contain further details.

Commit 7e644f8 addresses issue #33.