Implemented AuthResource for XML, JSON and plain text. Implemented test
for AuthResource.