Added option to route / block / process resource requests. Based on celeron55's patch. Closes #469.
For Travis CI - switch CI build to use OS X build environment.