Adapts test suite for cors and jsonp

- Adds json support to test server
- Adds plan tests
- Adds token tests