Added resource to handle direct item querying in URL.
Corrected error message when item profile or item query is not found.