Fix handling of 404.
Discovery endpoint by @amitaibu and @e0ipso.
Self url should point to the RESTful URL.
Document the discovery options.
Fix _links in pagination.
Show only latest resource by default in discovery.
Merge branch '7.x-1.x' into 196