2.0 rewrite

Here is the PR for a CORS integration. Don't merge it because it's likely that I'll add some more details to the readme.