Extended HAL library to the last HAL json specification
( JSON Hypertext Application Language  draft-kelly-json-hal-06).

Added test cases.