initial version to exclude resources

@cjohansen, can you please review the solution and merge it into master, if you agree with it?