Add appropriate garbage collection to EntityFactory.

Also add some relevant comments to clarify prototype behavior of
behaviours and entities.
Merge branch 'somethingtodowithentities' of github.com:dreac0nic/nimbus into somethingtodowithentities