Added check for space purpose.

refs #5980

Added a check for the space's purpose to make sure it's a SWORD
server before sending back a SWORD response.