fix pathname to route resolution
add support for CORS

Route declaration can allow hosts to be accessed from other hosts:
abc < www
This allows the host "www" to make requests to the host "abc".
allow the "*" origin host to be specified for CORS (implied for the host "*")
bump version number to 2.0