Resource constructor supports an instance of Link

- Allow Hal\Resource::__construct to accept an instance of \Hal\Link in first
argument
- Added unit test and updated the doc block