Added option to route / block / process resource requests. Based on celeron55's patch. Closes #469.