Added RPC calls for URL fetching.  Cleaned up error handling to be more robust.