Add proper error handling and tests for remote includes.

Signed-off-by: Daniel Nephin <dnephin@yelp.com>