Various fixes

1. XML output from getCollection wrapped with <results><result>...</result><result>...</result></results> so that valid XML is returned when application/xml is used.
2. Fixed output of sendCreatedResponse so that <id> is output correctly when application/xml is used.