Configurable origins

Additional, non-default origins may be set in a config file.

The configuration is JSON, consisting of path - origin pairs and may be
specified by setting TP_CONFIG.