Fix ID element for cases where the resource we are sending a response for is not the resource requested.
Add profile attribute to entity self link.
Merge pull request #155 from mtemenos/master

Fix ID for cases where resource sending response is not the resource requested + Add profile attribute to entity self link
Add support for cache headers and an in-IRIS cache
Add test case
Improve tests and logging