Merge branch 'releases/1.0.0' into develop

1.0.0 readiness
Merge branch 'hotfix/composer-branch-alias' into develop

Per zfcampus/zf-apigility-skeleton#58
[#33] Store original entity in Hal\Entity

When calling `createEntity()` we should **not** serialize the original object to
an array, as this breaks listeners on `renderEntity`; listeners can no longer
use instanceof to detect the type, as it's always an array.

However, to preserve the original behavior, which is that the returned
`ZF\Hal\Entity` object has an identifier, routing behavior, etc., we need to use
the metadata map in order to serialize the object and extract the identifier.
This leads to a situation where serialization can happen twice -- once when
`createEntity()` is called, and once when `renderEntity()` is called. To address
that situation, this patch also introduces a `serializedEntities` object, which
maps objects to their array representations. This is a fast lookup, and prevents
the double serialization operation.

Doing this allowed removing code from `createEntityFromMetadataMap()`, as the
logic for extracting the entity was largely duplicated from
`convertEntityToArray()`.
[#35] CS fixes (trailing whitespace)
Merge branch 'hotfix/33'

Fixes #33
Close #34
Close #35
Merge branch 'hotfix/33' into develop

Forward port #35
Added the requirements in README
Merge pull request #37 from ezimuel/feature/add-requirements

Added the requirements in README
Merge branch 'hotfix/37'

Close #37
Merge branch 'hotfix/37' into develop

Forward port #37
Small typo in readme.md

Was playing with the onBootstrap events, came across this typo.
Merge pull request #40 from EMCP/master

Small typo in readme.md
Merge branch 'hotfix/40'

Close #40
Merge branch 'hotfix/40' into develop

Forward port #40
Update Hal Plugin to support entities with $id = 0

Update Hal Plugin to support entities with $id = 0, these were currently not rendered because of a wrong if-clause
Update Hal Plugin to embed entities with $id = 0

Antoher change related to issue https://github.com/zfcampus/zf-hal/issues/44 .
The entity with `$id = 0` was also not properly embedded in the collection because of another similar faulty if clause, this time in the `extractCollection` method. This change fixes the issue and makes sure that the entity is properly rendered.
[#47] Ensure links generated from metadata are retained

- createEntity() was creating a new Entity instance that composed the original
  object after calling createEntityFromMetadata(); this lost any links that were
  generated during that call, meaning that they were no longer rendered.
Merge branch 'hotfix/47'

Close #47
Merge pull request #45 from Wilt/develop

Update Hal Plugin to support entities with $id = 0
Merge branch 'hotfix/45'

Close #45