Feature: CORS support

Add CORS support and don't allow duplicate tokens.
Feature: customisable open/close url portions

* Customisable open/close url parameters
* Remove all dependencies