Don't add resource to array without a 'uri'
Added feature issue154

I went with a testing approach that's little more high level (matching the Application __toString() output), and initiates the resources like in the "Tyrell" example.
Merge pull request #155 from drkibitz/master

Fix for issue 154