Adding cors and mockResponse to madeye-common.

Partially addresses #3.