Renamed host:add(pattern, callback) to host:addpattern().
Added host:add(url, callback) for non-pattern resources.