Added unit tests, fixed json serialization issues

Added unit tests for most of the messages used for U2F. fixed bad json
serialization by adding properties.