Use real DOM for testing (1 of 2).

New JS library `spf.testing.dom` appends elements to the document to be used in SPF tests.

Use this on response_test. Next and final part is to change resource_test.

Progress on #178