[#59] Wrote unit test

- Demonstrates expectations for embedded collections
Extract method

- Extracted logic for creating embed array for a collection into its own
  method
[#59] Resources may embed HalCollections now

- Any individual resource, whether embedded or standalone, can now embed
  a collection.

- Discovered an issue with creation of HAL links in the process; working
  on a fix.
Fixed link rendering error

- fromLink() returned the path directly if it included "http" as the
  first four characters; it should wrap it in an array, assigning the
  path to an "href" key.
CS fixes

- trailing whitespace
Merge branch 'hotfix/59'

Close #59