Supports CORS.
Uses methods to check cache.
Corrects params cache.
Corrects tests.
Merge pull request #391 from LearningLocker/issue/371

Supports CORS.